// Package _3_FindRepeatNumber
// Date        : 2022/12/5 15:48
// Version     : 1.0.0
// Author      : 代码小学生王木木
// Email       : 18574945291@163.com
// Description :
package main

func findRepeatNumber(nums []int) int {
	arrLen := len(nums)
	if arrLen <= 0 {
		return -1
	}
	bitMap := make([]int, arrLen)
	for _, v := range nums {
		if bitMap[v] == 0 {
			bitMap[v] = 1
		} else {
			return v
		}
	}
	return 0
}
